﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Partner.Search2" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenu3"></div>
				<div id="Title">
					<div class="h1">Find a Language Exchange Partner</div>
				</div>
				<div class="Center9001">
				<div class="center9001content">
					<div class="content828" id="Content828ID">						
						<div id="Filter" class="contacts_sortarea">
							<div>
								<table border="0" cellspacing="0" cellpadding="3">
									<tr>
										<td>Speaks:<br /><select id="selSpeakL" class="common180"> <option value="">Any languages</option> <%=GetLanguageSelect("")%> </select></td>
										<td>Learning:<br /><select id="selLearnL" class="common180"> <option value="">Any languages</option> <%=GetLanguageSelect("")%> </select></td>
										<td>From:<br /><select id="selCountry" class="common130"> <option value="">Anywhere</option>  <%=GetCountrySelect("")%> </select></td>
										<td>Ages:<br />
											<select id="selAge" class="common100">
												<option value="0-200">所有</option>
												<option value="0-18">18岁以下</option>
												<option value="18-25">18-25</option>
												<option value="26-35">26-35</option>
												<option value="36-200">35+</option>
											</select>
										</td>
										<td>Gender:<br />
											<select id="selGender" class="common100">
												<option value="">所有</option>
												<option value="1">男</option>
												<option value="0">女</option>
											</select>
										</td>
									</tr>
								</table>
								<div>
									<input id="bttSear" name="bttSear_name" type="button" value="Browse" class="button" onclick="SearBrowseDocs()" />
									<input id="IsNativeBLID" type="checkbox" />Native speaker
									<input id="iconCheck" type="checkbox" /> Display photo
								</div>
							</div>
						</div>
					</div>
					<div class="center9001right">
						<div class="Center9001Content">
						    <div class="content628 margin20" style="padding-bottom:5px;border-bottom:1px #e1e1e1 solid;">
					            <div style="width:540px; float:left">
					                <div id="SearCount">
					                    <%=Country == "" ? string.Format(GetText("First {0} language exchangers for {1}"), RecordCount, BLF.WWW_WWW.Contact.Contacts.GetFavorite(Favorite)) : string.Format(GetText("First {0} language exchangers for {1}"), RecordCount, BLF.StaticData.GetCountryText(Country))%>
					                </div>
						        <div class="Clear"></div>
					        </div>
							<!--Search result-->
							<div id="memberList" class="content628 ">							    
							    <asp:Repeater ID="rptUserList" runat="server">
                                    <ItemTemplate>                                    
										<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;padding-bottom:10px;border-bottom:1px #e1e1e1 solid;overflow:hidden">
										  <tr>
											<td width="120" valign="top"><div class="Pic90"><a class="Photo_90" href="/<%#Eval("MemberNo") %><%#Eval("MemberType").ToString()=="1"?"T":""%>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt='' />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></td>
											<td width="200" valign="top"><div class="Blue14BU">
											    <img src='<%#(bool)Eval("Online") == true?"/Images/Online.gif":"/Images/Offline.gif" %>' />
											    <a href="/<%#Eval("MemberNo") %><%#Eval("MemberType").ToString()=="1"?"T":""%>.htm"><%#Eval("NickName") %></a><%#Eval("MemberType").ToString()=="1"?"Teacher":""%></div>
											    <div><%#(bool)Eval("IsShowBod") ? (Eval("Age").ToString() != "" ? (Eval("Age").ToString() + ",") : "") : ""%> <%#Eval("Gender").ToString()!=""?GetGenderText(Eval("Gender").ToString())+",":""%> 
											        from <%#Eval("Hometown").ToString() == "" ? "" : Eval("Hometown").ToString()+","%><%#GetCountryText(Eval("Nationality").ToString())%>
											        <br />Living in <%#Eval("City").ToString() == "" ? "" : Eval("City").ToString()+", "%><%#GetCountryText(Eval("Country").ToString())%>
											    </div>											
											</td>
											<td width="280" valign="top">
                                                <br />Speaks: <strong><%#BLF.StaticData.GetLanguageText(Eval("MotherTongue").ToString())%><img src="/Images/Level5.gif" /><%#(Eval("MotherTongue2").ToString().Trim()=="")?"":", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue2").ToString())+Eval("motherTongue2Level","<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue3").ToString().Trim() == "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue3").ToString()) + Eval("motherTongue3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("MotherTongue4").ToString().Trim() == "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue4").ToString()) + Eval("motherTongue4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></strong>
                                                <br />Learning: <strong><%#(BLF.StaticData.GetLanguageText(Eval("TargetLanguage").ToString()) + Eval("TargetLanguageLevel", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage2").ToString().Trim()== "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("TargetLanguage2").ToString()) + Eval("TargetLanguage2Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage3").ToString().Trim()== "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("TargetLanguage3").ToString()) + Eval("TargetLanguage3Level", "<img src=\"/Images/Level{0}.gif\" />"))%><%#(Eval("TargetLanguage4").ToString().Trim()== "") ? "" : ", "+(BLF.StaticData.GetLanguageText(Eval("TargetLanguage4").ToString()) + Eval("TargetLanguage4Level", "<img src=\"/Images/Level{0}.gif\" />"))%></strong>
                                                </td>
										</tr>
										</table>
							        </ItemTemplate>
                                </asp:Repeater>  
                                <%if (rptUserList.Items.Count == 0){ %>没有找到你要的数据<%} %>                              
							</div>
							<div class="clear"></div>							
							<div id="divPage" class="margin20T">							
								<%=string.IsNullOrEmpty(Country) ? CreatePageNav(RecordCount, psize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/love-{1}.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,Favorite,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/love-{1}.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,Favorite,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/partner/love-{1}.htm?p=$I$'>$I$</a></span>&nbsp;",WWWHost,Favorite)
                                    ):
                                    CreatePageNav(RecordCount, psize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/in-{1}.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,Country,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/partner/in-{1}.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,Country,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/partner/in-{1}.htm?p=$I$'>$I$</a></span>&nbsp;",WWWHost,Country)
                                    )
								%>
							</div>
							<br />
							<div class="">
						        <h3>Most popular languages for language exchange</h3>
						        <div class="margin5">
				                    <asp:Repeater ID="rptPopular" runat="server">
						                <ItemTemplate>										
							                <a href='<%=WWWHost %>/partner/speak-<%#Eval("LanguageValue")%>.htm'><%#GetText("Speak {0}", new string[] { Eval("LanguageText").ToString() })%></a>
						                </ItemTemplate>
					                </asp:Repeater>
						        </div>
						        <div><a href="/partner/languages.htm">All languages for language exchange</a></div>
					        </div>
						</div>						
					</div>					
					<div class="center9001left">
					    <input id="textSear2" type="text" class="common300" value="" />
						<input id="bttSear2" type="button" value="Search" class="button" onclick="SearchDocs()" />
					</div>					
				</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
